package bavaria.hightech.banking;

import java.util.Date;

public final class Transaction {
	
	private final String reason;
	private final Money money;
	private final Date time;
	
	public Transaction(String reason, Money money, Date time){
		this.reason = reason;
		this.money = money;
		this.time = time;
	}
	
	public String getReason() {
		return reason;
	}

	public Money getMoney() {
		return money;
	}

	public Date getTime() {
		return time;
	}

	public String toString(){
		String s = time + "\t" + reason + "\t" + money.toString();
		
		return s;
	}
		
}